package com.cnswhy.cloud.server.core.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;

import lombok.Data;
import lombok.Builder;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import com.cnswhy.cloud.server.common.entity.enumeration.WalletType;
import java.io.Serializable;

/**
 * <p>
 * 实体类
 * 
 * </p>
 *
 * @author cnswhy
 * @since 2020-10-14
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
@Builder
@ApiModel(value = "CustomerWalletSaveDTO", description = "")
public class CustomerWalletSaveDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 客户ID
     */
    @ApiModelProperty(value = "客户ID")
    @NotNull(message = "客户ID不能为空")
    private Long customerId;
    /**
     * 钱包类型 #WalletType{BALANCE:余额;COUPON:拼购券;SPELL_VALUE:拼购券;SPELL_VALUE:拼团值;CONTRIBUTION_VALUE:贡献值;SPELL_BALANCE:拼团收益;CONTRIBUTION_BALANCE:拼团收益;LOVE_BALANCE:爱心收益;SHARE_BALANCE:分享收益;}
     */
    @ApiModelProperty(value = "钱包类型 #WalletType{BALANCE:余额;COUPON:拼购券;SPELL_VALUE:拼购券;SPELL_VALUE:拼团值;CONTRIBUTION_VALUE:贡献值;SPELL_BALANCE:拼团收益;CONTRIBUTION_BALANCE:拼团收益;LOVE_BALANCE:爱心收益;SHARE_BALANCE:分享收益;}")
    @NotNull(message = "钱包类型 #WalletType{BALANCE:余额;COUPON:拼购券;SPELL_VALUE:拼购券;SPELL_VALUE:拼团值;CONTRIBUTION_VALUE:贡献值;SPELL_BALANCE:拼团收益;CONTRIBUTION_BALANCE:拼团收益;LOVE_BALANCE:爱心收益;SHARE_BALANCE:分享收益;}不能为空")
    private WalletType walletType;
    /**
     * 可用余额
     */
    @ApiModelProperty(value = "可用余额")
    @NotNull(message = "可用余额不能为空")
    private Long avlbBalance;
    /**
     * 冻结余额
     */
    @ApiModelProperty(value = "冻结余额")
    @NotNull(message = "冻结余额不能为空")
    private Long fronzenBalance;

}
